﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SuperSerialization.Tree
{
    /// <summary>
    /// A base class for nodes in the document tree.
    /// </summary>
    abstract class Node
    {
        /// <summary>
        /// Calls the appropriate visit function on a visitor.
        /// </summary>
        /// <param name="visitor">A visitor that should visit this node.</param>
        public abstract void Accept(TreeVisitor.AbstractVisitor visitor);
    }
}
